﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common
{
    public class MethodResult
    {
        public MessageType EnmMessageType { get; set; }

        public string Message { get; set; }

        public string Message_ID { get; set; }

        public short Records { get; set; }

        public MethodResult()
        {

        }

        public MethodResult(MessageType messageType,string message,string messageid,short records)
        {
            this.EnmMessageType = messageType;
            this.Message = message;
            this.Message_ID = messageid;
            this.Records = records;
        }

        public MethodResult CurrentMessageResult(MessageType messageType, string message, string messageid, short records)
        {
            this.EnmMessageType = messageType;
            this.Message = message;
            this.Message_ID = messageid;
            this.Records = records;
            return this;

        }

    }

    public enum MessageType
    {
        Success,
        Information,
        Warning,
        Error

    }
}
